from django.db import models

# Create your models here.
class Shops_base(models.Model):
    #基础信息 图片地址
    joining_trader = models.CharField(max_length=10, verbose_name=u'加盟商名称')
    name = models.CharField(max_length=10, verbose_name=u'联系人姓名')
    phone = models.CharField(max_length=10, verbose_name=u'联系电话')
    store_type = models.CharField(max_length=10, verbose_name=u'店铺类型')
    brand = models.CharField(max_length=10, verbose_name=u'店铺品牌')

    province = models.CharField(max_length=10, verbose_name=u'省')
    city = models.CharField(max_length=10, verbose_name=u'市')
    area = models.CharField(max_length=10, verbose_name=u'区')

    address = models.CharField(max_length=10, verbose_name=u'店面详细地址')
    area = models.CharField(max_length=10, verbose_name=u'店面面积')

    system_number = models.CharField(max_length=10, verbose_name=u'门店职员人数')
    age = models.CharField(max_length=10, verbose_name=u'从业年限')
    project = models.CharField(max_length=10, verbose_name=u'希望合作项目')

    service_capabliity = models.ManyToManyField('Service_project',verbose_name=u'自身服务能力')

    business_license = models.CharField(max_length=10, verbose_name=u'营业执照照')
    business_license_img = models.CharField(max_length=10, verbose_name=u'营业执照照片')
    presence_pc = models.CharField(max_length=10, verbose_name=u'有无电脑')
    Computer_operation = models.CharField(max_length=10, verbose_name=u'电脑操作')
    app_operation = models.CharField(max_length=10, verbose_name=u'手机APP操作')
    door_first_img = models.CharField(max_length=10, verbose_name=u'门店门头照片')
    environment_img = models.CharField(max_length=10, verbose_name=u'门店环境照片')
    equipment_img = models.CharField(max_length=10, verbose_name=u'门店设备照片')

    
 
class Service_project_parent(models.Model):
    # 服务分类
    title = models.CharField(max_length=10, verbose_name=u'名称')

class Service_project(models.Model):
    # 服务项目
    title = models.CharField(max_length=10, verbose_name=u'名称')
    parent = models.ForeignKey('Service_project_parent',on_delete=models.CASCADE,verbose_name=u'服务所属分类')
